@import '@/app/styles/variables';

.textarea {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
}

.label {
  color: #000;
  user-select: none;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px; /* 130% */
  margin-bottom: 16px;
}

.input_container {
  display: flex;
  cursor: text;
  justify-content: center;
  gap: 16px;
  padding: 22px 24px;
  width: 100%;
  height: 100%;
  border: 1px solid #e1e1e1;
  border-radius: 16px;
  background: #fff;
}

.input {
  all: unset;
  cursor: text;
  color: #000;
  font-style: normal;
  font-weight: 400;
  box-sizing: border-box;
  display: flex;
  line-height: 26px; /* 130% */
  font-size: 20px;
  align-items: center;
  gap: 16px;
  width: 100%;
  align-self: stretch;
  &::placeholder {
    font-size: 20px;
    line-height: 26px;
  }
  &[type='number'] {
    -moz-appearance: textfield;
  }
  &::-webkit-outer-spin-button,
  &::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
}

.icon {
  height: 24px;
  width: 24px;
  color: #ababab;
  &.active_icon {
    cursor: pointer;

    &:hover {
      color: #868686;
    }
  }
}

.error,
.info {
  margin-top: 8px;
}

.invalid {
  border-color: #ec3333;
}

.error {
  color: #ec3333;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px; /* 137.5% */
}
.desktop {
  display: unset;
}
.mobile {
  display: none;
}

@include media(sm) {
  .desktop {
    display: none;
  }
  .mobile {
    display: unset;
  }
  .label {
    font-size: 16px;
    line-height: 22px; /* 137.5% */
    margin-bottom: 8px;
  }
  .input {
    font-size: 16px;
    line-height: 24px; /* 137.5% */

    &::placeholder {
      font-size: 16px;
      line-height: 22px; /* 137.5% */
    }
  }
  .input_container {
    gap: 8px;
    border-radius: 12px;
    padding: 18px 16px;
  }
  .error {
    font-size: 14px;
    line-height: 20px; /* 142.857% */
  }
}
